<?php

class Zend_View_Helper_RightModules {

    public $view;
	
    public function setView($view) {
        $this->view = $view;
    }

    public function rightModules($position) {
        $auth = Zend_Auth::getInstance();
        
        $this->view->addScriptPath(APPLICATION_PATH . DIRECTORY_SEPARATOR . 'modules'
        											. DIRECTORY_SEPARATOR . 'cms'
        											. DIRECTORY_SEPARATOR . 'admin'
        											. DIRECTORY_SEPARATOR . 'views'
        											. DIRECTORY_SEPARATOR . 'scripts'
        											. DIRECTORY_SEPARATOR . 'rightmodules');
        											
        
        $this->view->placeholder($position)->captureStart();
        echo $this->view->render('hot_deal.phtml');
        echo $this->view->render('online_support.phtml');
        echo $this->view->render('hot_line.phtml');
        echo $this->view->render('guide.phtml');
        echo $this->view->render('counter.phtml');
        $this->view->placeholder($position)->captureEnd();
    }

}